package com.rran.study.designpattern.structural.flyweight;

import lombok.Data;

/**
 * @author yy
 * @Type Board.java
 * @Desc
 * @date 2020/7/24 20:25
 */
@Data
public class Board implements Brush {
    private String color;
    private int x;
    private int y;

    public Board(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("x : " + x
                + ", y : " + y);
    }
}
